package com.yunhe.biz;

import java.util.List;

import com.yunhe.dao.CategoryImpl;
import com.yunhe.dao.ICategory;
import com.yunhe.entity.Category;

public class CategoryBizImpl implements ICategoryBiz {

	ICategory ic = new CategoryImpl();
	@Override
	public boolean addCategory(Category category) {
		int count = ic.addCategory(category);
		if(count>0){
			return true;
		}else{
			return false;
		}
	}
	@Override
	public List<Category> getAllCategory() {
		List<Category> list = ic.getAllCategory();
		return list;
	}
	@Override
	public boolean delCategory(Category category) {
		int count = ic.delCategory(category);
		if(count>0){
			return true;
		}else{
			return false;
		}
	}
	
}
